package org.example.demo4.model;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Table(value = "team_dept")


public class TeamDeptEntity {

    /**
     * 组织 ID
     */
    @Id(keyType = KeyType.Auto)
    private Integer orgid;

    /**
     * 部门 ID
     */
    @Column(value = "deptId")
    private Integer deptid;

    /**
     * 部门名称
     */
    @Column(value = "name")
    private String name;

    /**
     * 父部门 ID  （没有为空）
     */
    @Column(value = "parentId")
    private Integer parentid;

    /**
     * 创建时间
     */
    @Column(value = "created")
    private String created;

    /**
     * 部门负责人 ID
     */
    @Column(value = "leaderId")
    private Integer leaderid;

    /**
     * 所有祖先部门 ID 列表，ancestorIds[0] 为直接父部门，ancestorIds[1] 为父部门的父部门，以此类推
     */
    @Column(value = "ancestorIds"    )
            private java.lang.String ancestorids;


            public java.lang.Integer getOrgid(){
            return orgid;
            }

            public void setOrgid(java.lang.Integer orgid) {
        this.orgid = orgid;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public Integer getLeaderid() {
        return leaderid;
    }

    public void setLeaderid(Integer leaderid) {
        this.leaderid = leaderid;
    }

    public String getAncestorids
            () {
        return ancestorids
                ;
    }

    public void setAncestorids
            (String ancestorids
            ) {
        this.ancestorids
                = ancestorids
        ;
    }
}
